package demo1;

import java.util.Comparator;

public class NameCopmartor implements Comparator<Stu> {
    //Comparator 对于类的入侵行比较小
    @Override
    public int compare(Stu o1, Stu o2) {
        return o2.compareTo(o1);
    }
}
